﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Model.ProductType>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết đối tượng
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% if (ViewData["MessageInfo"] == null)
   {%>
   <table class="admintable">
    <tr>
        <td class="key">Mã đối tượng</td>
        <td><%=Html.Encode(Model.ID) %></td>
    </tr>
    <tr>
        <td class="key">Tên đối tượng</td>
        <td><%=Html.Encode(Model.Name) %></td>
    </tr>
    <tr>
        <td class="key">Mô tả</td>
        <td><%=Model.Description %></td>
    </tr>
   </table> 
<%} %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
<%= Html.Toolbar("Thêm mới","/ProductType/Create", "new") %>
<%= Html.Toolbar("Sửa", string.Format("/ProductType/Edit/{0}", Model.ID), "edit")%>
<%= Html.Toolbar("Xóa", string.Format("/ProductType/Delete/{0}", Model.ID), "delete")%>
<%= Html.Toolbar("Quay lại", "/ProductType", "back")%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
Chi tiết đối tượng
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
<%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
